FROM registry.cn-shanghai.aliyuncs.com/lianbin/idata:v3

WORKDIR ${AIRFLOW_HOME}

ADD airflow ${AIRFLOW_HOME}/airflow
ADD setup.cfg ${AIRFLOW_HOME}/setup.cfg
ADD setup.py ${AIRFLOW_HOME}/setup.py
ADD airflow.cfg ${AIRFLOW_HOME}/airflow.cfg
ADD pod_template_file.yaml ${AIRFLOW_HOME}/pod_template_file.yaml
ADD requirements.txt requirements.txt

RUN pip install --timeout 600 -i https://mirrors.aliyun.com/pypi/simple -r requirements.txt --no-cache-dir
RUN chown -R airflow:root /home/airflow && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN pip install --timeout 600 wheel && pip install -e . && rm -rf setup*

CMD ["airflow", "webserver"]














